import cv2 
import os

num = 0
for file in os.listdir(path='/home/sss/Pictures/D435/images/train_'):
    img = cv2.imread('/home/sss/Pictures/D435/images/train_/'+file)
    img_f = cv2.flip(img, 1) #honrizontal
    #img_f = cv2.flip(img, 0) #vertikal
    #img_f = cv2.flip(img, -1) #honrizontal und vertikal
    #cv2.imshow("Vertical Flip", img) 
    #cv2.waitKey(0) 

    #cv2.imwrite('/home/sss/Pictures/D435/images/val_flip/'+str(num)+'.jpg',img_f)
    cv2.imwrite('/home/sss/Pictures/D435/images/train/'+file,img_f)

    num = num + 1
